module.exports = {
    userFormatError: {
        code: '1001',
        message: '用户名或密码为空',
        result: ""
    },
    userAlreadyExisted: {
        code: '1002',
        message: '用户已经存在',
        result: ""
    },
    userDoesNotExist: {
        code: '1003',
        message: '用户不存在',
        result: ''
    },
    userLoginErr: {
        code: '1004',
        message: '用户登录错误',
        result: ''
    },
    invalidPassword: {
        code: '1005',
        message: '用户密码不正确',
        result: ''
    },
    tokenExpiredError: {
        code: '1006',
        message: 'token过期',
        result: ''
    },
    jsonWebTokenError: {
        code: '1007',
        message: 'token错误',
        result: ''
    },
    hasNotAdminPermission: {
        code: '1008',
        message: '没有管理员权限',
        result: ""
    },
    fileUploadError: {
        code: '1009',
        message: "文件上传错误",
        result: ''
    },
    fileTypeError: {
        code: '1010',
        message: '文件类型错误',
        result: ''
    },
    goodsTypeError: {
        code: '1011',
        message: '商品参数格式错误',
        result: ''
    },
    publishGoodsError: {
        code: '1012',
        message: '发布商品错误',
        result: ''
    },
    invalidGoodsID: {
        code: '1013',
        message: '无效的商品ID',
        result: ''
    },
    cartFormatError: {
        code: '1014',
        message: '购物车数据格式错误',
        result: ''
    },
    addrFormatError: {
        code: '1015',
        message: '地址数据格式错误',
        result: ''
    },
    orderFormatError: {
        code: '1016',
        message: '订单数据格式错误',
        result: ''
    },
}
